<?php
namespace Home\Controller;
use Think\Controller;
class FlowController extends Controller{
    public function add(){
        $goodsModel = D('Admin/Goods');
        $goods = $goodsModel->find(I('get.goods_id'));
        $car = \Home\Tool\CarTool::getIns();
        $car->add($goods['goods_id'],$goods['goods_name'],$goods['shop_price']);
        
    }
    public function jian(){

        $car = \Home\Tool\CarTool::getIns();
        $car->decr(I('get.goods_id'));
        $this->redirect('Home/goods/checkout');
    }

}
